package com.shr.code_interview;

public class Solution_55 {
    public int TreeDepth(TreeNode root) {
        if(root == null)
        	return 0;
        else{
        	int leftDepth = TreeDepth(root.left) + 1;
        	int rightDepth = TreeDepth(root.right) + 1;
        	return Math.max(leftDepth, rightDepth) ;
        }
    }
}
